Skip to main content

All Questions

Tagged with
0votes
0answers
27views

DataTable is always empty in ASP.NET MVC

I am working with jQuery datatables, but the datatable is always empty when the page loads. On inspecting the network tab, the request returns an empty response but when debugging the controller ...
Adam Lukman's user avatar
0votes
1answer
39views

unobtrusive validation not showing messages

I'm trying to write some client side validation for my program and have been following several guides, including Microsofts. But the validation just refuses to work and I'm all out of ideas ! The ...
user29983288's user avatar
0votes
2answers
81views

ASP.NET MVC and Razor to not display anything if current year

I have this code in a .cshtml file @if (Model.YearsInBusiness > 1) { <div class="in-business mt15" style="width:100%; float:left"> <span class="badge&...
Acidburns's user avatar
0votes
1answer
58views

ASP.NET MVC changes route elements, want them back as original route, not params

This is purely for aesthetics but... My base url has two parameters: https://localhost:44360/Appointment/Index/Os12RB/john-doe But doing a post from this form: @using (Html.BeginForm("Index"...
MPelletier's user avatar
0votes
0answers
16views

Issue with NewsletterStudio.Api in the NewsletterStudioSubscribe.cshtml, in an Umbraco 8 site

I have just inherited on old Umbraco 8 site which uses NewsletterStudio and has the following nuget packages installed: NewsletterStudio 3.0.9, NewsletterStudio.Core 3.0.9, NewsletterStudio.Web 3.0.9 ...
DarkW1nter's user avatar
0votes
0answers
44views

ASP.NET MVC @Html.Raw(Html.Encode) replace

I am writing an ASP.NET MVC application. I have a page that renders a table with a foreach statement. One of the lines is a text I want to split in different <BR> depending on the content I want ...
Diego's user avatar
  • 2,378
0votes
1answer
306views

ASP.NET Core 8 Razor Pages Binding Multiple Page Models to Single Route

I'm working with ASP.NET Core 8.0.8. My razor page application has a dynamic Table.cshtml page with route @page "/table/{table}" that can take any model and display the associated database ...
user27271256's user avatar
0votes
1answer
79views

ASP.NET MVC / Razor : using date picker with string field

I have the following "date" fields in my model that are representing as a string: I have the following in my view: My question is how do I get cast the string properly to fit the date picker?...
H22's user avatar
  • 179
0votes
1answer
50views

Drag-and-drop action is being interpreted as a click, bypassing the confirmation dialog

We’ve got an EF6 MVC3 codeFirst-site. And recently i learned that if you click it, the confirm dialog works fine, but if you click and try to undo it by drag the link somewere and let go, you would ...
Fredrik Kindahl's user avatar
1vote
1answer
101views

Bootstrap and Font Awesome icons not appearing

I have this code in my _layout and it renders what I want as I want it. Now in my different views (see second code snippet), I'm trying to insert some icons using Bootstrap or Font Awesome, but ...
Patrice's user avatar
1vote
0answers
44views

jsPdf Export not Exporting class declared CSS

how do I apply a check on a class check? I have the following html5 logic. My style applies the format to my razor page view. I want to apply the css setting, can I add any ID fields into my somehow?...
Davron Jacobs's user avatar
0votes
0answers
125views

Trouble with models in partial views in Umbraco 13

I'm migrating an Umbraco 8 site to Umbraco 13 using usync migrate. Everything looks to have converted well but now I'm in the code trying to knit it all back together. I am trying to recreate the ...
Squidgybuffalo's user avatar
0votes
1answer
116views

How to pass a parameter to @await Component.InvokeAsync(typeof(TopMenuViewComponent))?

I'm working with views, not a controller. How to pass a parameter to @await Component.InvokeAsync(typeof(TopMenuViewComponent)) and then in the component TopMenuViewComponent (Default.cshtml) get ...
Denis's user avatar
0votes
0answers
64views

HttpContext.Current.Server.Execute is not working in .NET 4.8

In my .cshtml page, we are calling an .aspx page through virtual path (eg. /includes/header.aspx) and trying to convert its output into a string and embed on the page. But it's throwing this error: ...
Gopala Krishna's user avatar
-1votes
1answer
49views

Layout CSS and JS Not Rendering in New Views Despite Working in Other Views

my layout page is working properly on 9 different views (all of them index.cshtml) when i add some another view for the controller, layout is still working but css and js files doesn't work properly. ...
Emre Pelte's user avatar

153050per page
close